class StartScene extends eui.Component implements  eui.UIComponent {
	public constructor() {
		super();
	}

	public bg_img:eui.Image;
	public start_btn:eui.Button;
	public setting_btn:eui.Button;
	public title_lb:eui.Label;

	// 添加皮肤的时候自动调用该函数
	protected partAdded(partName:string,instance:any):void
	{
		super.partAdded(partName,instance);
	}

	// 组件加载完毕后调用该函数
	protected childrenCreated():void
	{
		super.childrenCreated();
		this.init();
	}
	
	// 游戏初始化
	private init()
	{
		this.start_btn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.on_start_game_click, this);
		this.setting_btn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.on_setting_click, this);
	}

	// 点击开始游戏按钮
	private on_start_game_click()
	{
		var parent = this.parent;
		parent.removeChild(this);

		// 进入游戏场景
		var lv = new GameLevel();
		Main.stage.addChild(lv);
	}

	// 设置按钮
	private on_setting_click()
	{
		// 显示游戏设置界面,并关闭本界面
		
	}
}